<!DOCTYPE html>
<!-- saved from url=(0065)https://xdbj.net.cn/resource/appdownload/advertisement/appwx.html -->
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>欢迎使运企安全管理</title>
</head>

<body>
<style type="text/css">
  * {
    margin: 0;
    padding: 0;
  }

  html,
  body {
    height: 100%;
    box-sizing: border-box;
  }

  .live_weixin {
    max-width: 100%;
    height: auto;
  }

  .test {
    height: calc(100% - 50px);
    position: relative;
    width: 100%;
    text-align: center;
    flex-direction: column;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }

  .test img {
    height: 100px;
  }

  .test div {
    line-height: 30px;
    font-size: 20px;
    margin: 10px 0;
    letter-spacing: 1px;
  }

  .test button {
    display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    background-color: #009688;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
  }

  ._wz_foot {
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding: 10px 10%;
    box-sizing: border-box;
  }

  ._wz_foot div {
    line-height: 30px;
    color: #999;
  }
</style>
<div class="test">
  <img
    src="">
  <div>欢迎使运企安全管理</div>
  <button onclick="xzApp()" type="button">安卓点击下载</button>
  <br/>
  <!--  <button onclick="xzIos()" type="button">IOS点击下载</button>-->
</div>
<div class="_wz_foot">
  <div>技术支持：河北信达交通科技有限公司</div>
</div>
<script type="text/javascript">
  function is_weixin() {
    var ua = navigator.userAgent.toLowerCase();
    if (ua.match(/MicroMessenger/i) == "micromessenger") {
      return true;
    } else {
      return false;
    }
  }

  var isWeixin = is_weixin();
  var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;

  function loadHtml() {
    var div = document.createElement('div');
    div.id = 'weixin-tip';
    div.innerHTML = '<p><img src="" class="live_weixin" alt="微信打开"/></p>';
    document.body.appendChild(div);
  }

  function loadStyleText(cssText) {
    var style = document.createElement('style');
    style.rel = 'stylesheet';
    style.type = 'text/css';
    try {
      style.appendChild(document.createTextNode(cssText));
    } catch (e) {
      style.styleSheet.cssText = cssText; //ie9以下
    }
    var head = document.getElementsByTagName("head")[0]; //head标签之间加上style样式
    head.appendChild(style);
  }

  var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
  if (isWeixin) {
    loadHtml();
    loadStyleText(cssText);
  }

  function xzApp() {
    if (!isWeixin) {
      window.location.href = "https://xdbj.net.cn/resource/APK/manager.apk";
    }

  }

  function xzIos() {
    if (!isWeixin) {
      window.location.href = "https://apps.apple.com/cn/app/%E4%BF%A1%E8%BE%BE%E5%AE%9D%E9%A9%BE/id1485207678?tdsourcetag=s_pctim_aiomsg";
    }
  }
</script>


</body>
</html>
